package com.cpit.platform.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.cpit.platform.dto.Authority;

public interface AuthorityRepository extends JpaRepository<Authority, Long> {
	@SuppressWarnings("unchecked")
	Authority save(Authority auth);
	void delete(Authority auth);
	List<Authority> findAll();
	Authority findById(Integer id);
	
	Page<Authority> findByNameContaining(String name, Pageable pageable);
}
